home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Subviews
- Sent: 5/30/96 9:50 AM
- Received: 5/30/96 10:17 AM
- From: Laurent Delamare, laurentd@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >>While reading the "ODF Developer's Guide Update", I came across the
- >>following paragraph in the section on "Defining a Subview"
- >>
- >>"The view hierarchy inside your frame will never be very deep. Usually a
- >>frame contains simple views, such as controls, as direct children, and it
- >>may contain a content view which itself contains other simple views. It
- >>is rare that you use more than 2 layers of views because of the limitation"
- >>
- >>What is the limitation being referred to in that last (incomplete)
- >>sentence? Does this mean that my view hierarchy _should not_ get very
- >>deep? If so, how deep is too deep? I am currently using nested subviews
- >>extensively in my part.
- >>
- >>Thanks,
- >>Rob Cope
- >>Eclipse Services
- >>
- >
- >There are no limit to the number of embedded views in ODF. What Laurent
- >was refering to, I think, is the 'limitation' we have in ODF with
- >scrollers. You can have only one scrolling region in a frame: means you
- >can have only one scroller per frame. If you need to have two views
- >scrolling (not synchronized) you need to have two frames. This is due to
- >the fact that the ODF scroller uses the frame's internal transform, and
- >there is only one internal tranform per frame.
- >
- >Laurent could give you I am sure a better answer but he is out of the
- >office for the rest of the week.
- >
-
- I agree that we should change the phrasing to make it clear that there is
- no limitation in the number of nested subviews. The scroller limitation
- is one thing but it's another issue.
- At the time I wrote that I was thinking of the general case of parts with
- 0 or 1 scroller and a few controls. In the case of an outliner part for
- instance each element is a nested view, so it can go as deep as the user
- wants.
-
- Thanks for pointing that out.
-
- ______________________________________________________________________
- Laurent Delamare laurentd@apple.com
- ODF Team http://www.devtools.apple.com/odf/
- Apple Computer, Inc. http://www.opendoc.apple.com/
-